﻿var $loginForm = $('#loginForm');
var $rememberMe = $("#Login_RememberMe");

$loginForm.submit(function (e) {
    e.preventDefault();
    if (!$loginForm.valid()) {
        return;
    }

    var input = $loginForm.serializeFormToObject();

    console.log(input);
    console.log($loginForm.attr('action'));
    abp.ui.setBusy(
        null,
        abp.ajax({
            contentType: abp.formex.contentTypeUrl,
            url: $loginForm.attr('action'),
            data: $loginForm.serializeFormToObject()
        }).done(function () {
        }).fail(function () {
        })
    );
});